#if !defined(AFX_PATIENTMAN_H__AF59DB36_DCB5_4B23_8817_58AA93555410__INCLUDED_)
#define AFX_PATIENTMAN_H__AF59DB36_DCB5_4B23_8817_58AA93555410__INCLUDED_

#include "../Common/LinkEdit.h"
#include "../Common/LinkComboBox.h"
#include "../Common/LinkDate.h"


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PatientMan.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPatInfoEditDlg dialog

class CPatInfoEditDlg : public CDialog
{
// Construction
public:
	CPatInfoEditDlg(CWnd* pParent = NULL);   // standard constructor
	CPatInfoEditDlg(INPUT_FIELD_INFO* pInputArray, int nArraySize, CWnd* pParent = NULL);

// Dialog Data
	//{{AFX_DATA(CPatInfoEditDlg)
	enum { IDD = IDD_DIALOG_PATINFO_EDIT };
	CLinkComboBox	m_cmbGender;
	CLinkEdit	m_edtClincalDiag;
	CLinkEdit	m_edtHomeAddress;
	CLinkDateEdit	m_edt1stClinicDate;
	CLinkEdit	m_edt1stClinicDoctor;
	CLinkDateEdit	m_edtDateOfBirth;
	CLinkEdit	m_edtPhoneNo;
	CLinkEdit	m_edtWeight;
	CLinkEdit	m_edtStature;
	CLinkEdit	m_edtSerialNo;
	CLinkEdit	m_edtName;
	CLinkEdit	m_edtMedicaRecordNo;
	//}}AFX_DATA

	static BOOL				DateOfBirthCheck(LPVOID pParam);	
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPatInfoEditDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	virtual void OnOK(){}

	// Generated message map functions
	//{{AFX_MSG(CPatInfoEditDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPateditSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	BOOL						CopyToOri();
	template <class T> BOOL		CopyValue(T* pTo, T* pFrom);

private:
	INPUT_FIELD_INFO*			m_pOriFieldInfo;
	int							m_nOriFieldArraySize;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PATIENTMAN_H__AF59DB36_DCB5_4B23_8817_58AA93555410__INCLUDED_)
